implicit type conversion
CHANGING AN EXPRESSION FROM ONE DATA TYPE TO ANOTHER
Explicit type conversion; Typecasting (programming); Typecast (programming); Cast (computer science); Type conversions; Implicit coercion; Cast (computer programming); Implicit type conversion; Type coercion; Const cast; Implicit conversion; Upcasting; Type promotion; Type Conversion; Typecasting (hacking); Typecasting (computing); Type casting (computer programming); Typecasting (computer programming); Typecasting (computer science); Type casting (computer science); Type casting (computing); Cast (computing); Casting (computing); Casting (computer programming); Casting (computer science); Integer promotion; Type juggling; Implicit type casting; Explicit type casting
<
programming> (Or "coercion") The abilty of some
compilers
to automatically insert
type conversion
functions where an
expression of one
type is used in a context where another
type
is expected.
A common example is coercion of
integers to
reals so that
an expression like sin(1) is compiled as sin(integerToReal(1))
where sin is of
type Real -> Real.
A coercion is usually performed automatically by the compiler
whereas a
cast is an
explicit type conversion inserted by
the programmer.
See also
subtype.
(1997-07-28)